import request from '@/utils/request';

/**
 * 点赞视频
 */
export function likeVideoApi(videoId) {
  return request({
    url: `/like/${videoId}`,
    method: 'post',
  });
}

/**
 * 取消点赞视频
 */
export function unlikeVideoApi(videoId) {
  return request({
    url: `/like/${videoId}`,
    method: 'post',
  });
}